import Login from '../pages/Login.jsx';
import Register from '../pages/Register.jsx';
import BlogAdd from '../pages/BlogAdd.jsx';
import BlogEdit from '../pages/BlogEdit.jsx';
import BlogDetail from '../pages/BlogDetail.jsx';
import BlogList from '../pages/BlogList.jsx';

const commonRouter = [
    {
        path: '/login',
        commponent: Login,
    },
    {
        path: '/register',
        commponent: Register,
    },
];

const authRouter = [
    {
        path: '/blogs/add',
        commponent: BlogAdd,
    },
    {
        path: '/blogs/:id/edit',
        commponent: BlogEdit,
    },
    {
        path: '/blogs/:id/detail',
        commponent: BlogDetail,
    },
    {
        path: '/blogs',
        commponent: BlogList,
    },
];

export { commonRouter, authRouter };
